package com.allenkerr.app;

import com.gpsso.zhougong.Dream;
import com.gpsso.zhougong.DreamSoap;
import com.gpsso.zhougong.SearchDreamInfoResponse;

import java.util.List;

/**
 * 周公解梦
 * http://www.gpsso.com/WebService/Dream/Dream.asmx
 * <p>
 * Created by 小柯(Allen Kerr) on 17.5.15 19:33.
 */
public class ZhouGongDreamApp {

    public static void main(String[] args) {
        Dream dream = new Dream();
        DreamSoap dreamSoap = dream.getDreamSoap();
        SearchDreamInfoResponse.SearchDreamInfoResult result = dreamSoap.searchDreamInfo("水");
        System.out.println(result.getContent());
        List<Object> content = result.getContent();
        for (Object o : content) {
            System.out.println(o);
        }
    }

}
